KERNEL_SRC = /home/nico/data/YYnet/hgos29
KERNEL_BLD = /home/nico/data/YYnet/by_hg29

TARGET	= MTDCORE.o mtd_blkdevs.o mtdblock.o nand_00.o nandsim.o

obj-m              := $(TARGET)

MTDCORE-objs		= mtdcore.o mtdsuper.o mtdpart.o

nand_00-objs		= nand_base.o nand_bbt.o nand_ecc.o nand_ids.o

all:
	KBUILD_NOPEDANTIC=1 make -C $(KERNEL_BLD) M=`pwd`

clean:
	KBUILD_NOPEDANTIC=1 make -C $(KERNEL_BLD) M=`pwd` clean

inst:
	cp -f MTDCORE.ko mtd_blkdevs.ko mtdblock.ko nand_00.ko nandsim.ko ../run_root/
